package com.kgame5.xtank3d.effect.myemitters {
	import com.kgame5.xtank3d.resource.ResourceManagerX;
import kgame5.k3d.core.obj3d.node3d.Node3D;
import kgame5.k3d.util3d.Factory3D;

import com.kgame5.xtank3d.effect.MyEmitter;

/**
 * @author kk
 * 炮弹拖尾
 */
public class ShotSmokeEmitter extends MyEmitter{
	
	public function ShotSmokeEmitter() {
		//type是1和2,1是光球，2是导弹烟雾
		var md:Node3D=ResourceManagerX.getInstance().getFlySmoke(1);
		
		md.life=4;
		
		var scaleSpeed:Number=-1/md.life;
		md.ti.hardVO.v3d_sv.fill(scaleSpeed,scaleSpeed,scaleSpeed);
		
		md_g.addChild(md);
		
	}
}
}